Class LouvainAlgorithm
java.lang.Object
edu.claflin.finder.algo.clustering.struct.louvain_struct.LouvainAlgorithm
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanexistsNeighbor(int group1, int group2) private double[][]private booleanprivate doublemodularityDelta(int group1, int group2) private void
-
Field Details
-
graph
-
nodeCount
private int nodeCount -
groupVector
private int[] groupVector -
adjacencyMatrix
private double[][] adjacencyMatrix -
communities
-
groupMap
-
-
Constructor Details
-
LouvainAlgorithm
-
-
Method Details
-
mergeGroups
private boolean mergeGroups() -
existsNeighbor
private boolean existsNeighbor(int group1, int group2) -
getAdjacencyMatrix
private double[][] getAdjacencyMatrix() -
modularityDelta
private double modularityDelta(int group1, int group2) -
normalizeGroupVector
private void normalizeGroupVector() -
getCommunities
-